runtime.m.locks (field)

47 uses

	runtime (current package)
		lock_spinbit.go#L157: 	if gp.m.locks < 0 {
		lock_spinbit.go#L160: 	gp.m.locks++
		lock_spinbit.go#L318: 	gp.m.locks--
		lock_spinbit.go#L319: 	if gp.m.locks < 0 {
		lock_spinbit.go#L322: 	if gp.m.locks == 0 && gp.preempt { // restore the preemption request in case we've cleared it in newstack
		mgc.go#L739: 	if gp := getg(); gp == mp.g0 || mp.locks > 1 || mp.preemptoff != "" {
		mgcmark.go#L505: 	if mp := getg().m; mp.locks > 0 || mp.preemptoff != "" {
		mgcsweep.go#L364: 	gp.m.locks++
		mgcsweep.go#L370: 		gp.m.locks--
		mgcsweep.go#L448: 	gp.m.locks--
		mgcsweep.go#L470: 	if gp.m.locks == 0 && gp.m.mallocing == 0 && gp != gp.m.g0 {
		mgcsweep.go#L509: 	if gp.m.locks == 0 && gp.m.mallocing == 0 && gp != gp.m.g0 {
		mprof.go#L756: 	if gp := getg(); gp.m.locks == 1 && gp.m.mLockProfile.haveStack {
		panic.go#L841: 	if gp.m.locks != 0 {
		panic.go#L1525: 	if gp.m.locks < 0 {
		panic.go#L1526: 		gp.m.locks = 1
		panic.go#L1636: 	if mp.locks != 1 || mp.mallocing != 0 || mp.throwing != throwTypeNone || mp.preemptoff != "" || mp.dying != 0 {
		preempt.go#L290: 	return mp.locks == 0 && mp.mallocing == 0 && mp.preemptoff == "" && mp.p.ptr().status == _Prunning && mp.curg != nil && readgstatus(mp.curg)&^_Gscan != _Gsyscall
		print.go#L71: 	mp.locks++ // do not reschedule between printlock++ and lock(&debuglock).
		print.go#L76: 	mp.locks-- // now we know debuglock is held and holding up mp.locks for us.
		proc.go#L1652: 	if gp.m.locks > 0 {
		proc.go#L2995: 	if gp.m.locks != 0 {
		proc.go#L4138: 	if mp.locks != 0 {
		proc.go#L4632: 	gp.m.locks++
		proc.go#L4715: 	gp.m.locks--
		proc.go#L4794: 	gp.m.locks++ // see comment in entersyscall
		proc.go#L4860: 	gp.m.locks--
		proc.go#L4886: 	gp.m.locks++ // see comment in entersyscall
		proc.go#L4994: 		gp.m.locks--
		proc.go#L5011: 	gp.m.locks--
		proc.go#L5171: 	gp.m.locks++
		proc.go#L5202: 	gp.m.locks--
		proc.go#L5877: 	gp.m.locks++
		proc.go#L5901: 	gp.m.locks--
		proc.go#L6968: 		print(" mallocing=", mp.mallocing, " throwing=", mp.throwing, " preemptoff=", mp.preemptoff, " locks=", mp.locks, " dying=", mp.dying, " spinning=", mp.spinning, " blocked=", mp.blocked, " lockedg=")
		proc.go#L7889: 	mp.locks++
		proc.go#L7907: 	gp.m.locks--
		rand.go#L176: 		mp.locks++ // hold m even though c.Refill may do stack split checks
		rand.go#L178: 		mp.locks--
		runtime1.go#L602: 	gp.m.locks++
		runtime1.go#L609: 	mp.locks--
		runtime1.go#L610: 	if mp.locks == 0 && gp.preempt {
		runtime2.go#L649: 	locks           int32
		sema.go#L264: 		if s.ticket == 1 && getg().m.locks == 0 && getg() != getg().m.g0 {
		stack.go#L1126: 		if thisg.m.p == 0 && thisg.m.locks == 0 {
		vgetrandom_linux.go#L119: 		mp.locks++
		vgetrandom_linux.go#L121: 		mp.locks--